package com.sc.nft.entity.vo.mall;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class AdminRefundProductDetails {

    @ApiModelProperty("商品编码")
    private String productCode;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("缩略图")
    private String thumbnail;

    @ApiModelProperty("退款数量")
    private Integer refundNum;

    @ApiModelProperty("退款金额")
    private String refundPrice;

    public void setRefundPrice(BigDecimal refundPrice) {
        this.refundPrice = refundPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
